package cz.semjobKB.gui;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.vaadin.ui.HorizontalSplitPanel;

import javax.annotation.PostConstruct;

/**
 * Main window, consists of control and display part
 */
@Component
@SuppressWarnings({"restriction" })
public class EntryWindow extends HorizontalSplitPanel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Autowired 
	ControlLayout controlLayout;
	
	@Autowired
	DisplayLayout displayLayout;
	
	@PostConstruct
    protected void init() {
		this.setSplitPosition(30);
		this.setLocked(true);
		this.addComponent(controlLayout);
		this.addComponent(displayLayout);
	}
		
}
